package a17_state;

public class LIftOpenState extends LiftState {
	public LIftOpenState() {
		this.setState(StateEnum.OPEN);
	}

	@Override
	public void run() {
		System.out.println("cannot  run!");

	}

	@Override
	public void stop() {
		System.out.println("already stop");
		this.setState(StateEnum.STOP);
	}

	@Override
	public void close() {
		System.out.println("close it");
		this.setState(StateEnum.CLOSE);
	}

	@Override
	public void open() {
		System.out.println("already open");
		this.setState(StateEnum.OPEN);
	}

}
